package OneHomeWork;

public class StudentBean {

    private Integer studentId;


    private String name;
    /**
     * 性别
     */
    private String  gender;
    /**
     * 年龄
     */
    private  int age;
    /**
     * 所属班级
     */

    public StudentBean(){}

    public StudentBean(Integer studentId,String name,String  gender,int age){

        this.studentId=studentId;

        this.name=name;

        this.gender=gender;

        this.age=age;

    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "studentId=" + studentId +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", classBean=" +
                '}';
    }
}
